{template 'common/header'}
<ul class="nav nav-tabs">
	<li {if $action == 'creditrule'}class="active"{/if}><a href="{php echo url('mc/creditrule');}">积分规则</a></li>
</ul>
{if $do == 'display'}
<form action="" method="post" id="form1"  class="form-horizontal">
	<div class="panel panel-default">
		<div class="panel-heading">积分规则</div>
		<div class="panel-body">
			<div class="form-group">
				<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">会员注册</label>
				<div class="col-sm-5">
					<div class="input-group">
						<span class="input-group-addon">赠送</span>
						<input type="text" class="form-control" name="user_reg" value="{$item['user_reg']}" />
						<span class="input-group-addon">积分</span>
					</div>
					<div class="help-block">会员注册赠送积分.仅赠送一次</div>
				</div>
			</div>
			<div class="form-group">
				<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">验证手机号</label>
				<div class="col-sm-5">
					<div class="input-group">
						<span class="input-group-addon">赠送</span>
						<input type="text" class="form-control" name="verify_mobile" value="{$item['verify_mobile']}" />
						<span class="input-group-addon">积分</span>
					</div>
					<div class="help-block">会员验证手机号赠送积分.仅赠送一次</div>
				</div>
			</div>
			<div class="form-group">
				<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">验证邮箱</label>
				<div class="col-sm-5">
					<div class="input-group">
						<span class="input-group-addon">赠送</span>
						<input type="text" class="form-control" name="verify_email" value="{$item['verify_email']}" />
						<span class="input-group-addon">积分</span>
					</div>
					<div class="help-block">会员验证邮箱赠送积分.仅赠送一次</div>
				</div>
			</div>
			<div class="form-group">
				<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">消费返积分</label>
				<div class="col-sm-5">
					<div class="input-group">
						<span class="input-group-addon">兑换比率:1元返</span>
						<input type="text" class="form-control" name="grant_credit_rate" value="{$item['grant_credit_rate']}" />
						<span class="input-group-addon">积分</span>
					</div>
					<div class="help-block">设置消费返积分的比率.</div>
					<div class="help-block"><strong class="text-danger">例:兑换比率:1元返10积分,那用户每消费1元,将得到10积分.</strong></div>
				</div>
			</div>
		</div>
	</div>

	<div class="panel panel-default">
		<div class="panel-heading">支付积分兑换现金规则</div>
		<div class="panel-body">
			<div class="form-group">
				<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">兑换比例</label>
				<div class="col-sm-5">
					<div class="input-group">
						<span class="input-group-addon">1元等于</span>
						<input type="text" class="form-control" name="consume_credit_rate" value="{$item['consume_credit_rate']}" />
						<span class="input-group-addon">积分</span>
					</div>
					<br>
					<div class="input-group">
						<span class="input-group-addon">单次最多抵消</span>
						<input type="text" class="form-control" name="consume_credit_max" value="{$item['consume_credit_max']}" />
						<span class="input-group-addon">元</span>
					</div>
					<div class="help-block">此项设置的作用:会员在线支付的时候,可用积分抵消部分金额.</div>
					<div class="help-block"><strong class="text-danger">例:设置1元=100积分,单次最多可抵消5元.那用户在线支付时候,最多可使用500积分,抵消5元</strong></div>
				</div>
			</div>
		</div>
	</div>

	<div class="form-group">
		<div class="col-sm-12">
			<input name="token" type="hidden" value="{$_W['token']}" />
			<input type="submit" class="btn btn-primary col-lg-1" name="submit" value="提交" />
		</div>
	</div>
</form>
{/if}
{template 'common/footer'}